From acf50005ab302a51a41090232ce18098528051f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alberts=20Muktup=C4=81vels?= Date: Thu, 6 Apr 2017 11:16:12 +0300 Subject: [PATCH] gtkheaderbar: add style classes to all title buttons Commit b187773053098cca1b7c23e04e096d47fbb65a5f added CSS style classes for minimize, maximize and close buttons. Add similar classes also to icon and menu buttons. https://bugzilla.gnome.org/show_bug.cgi?id=780944 --- gtk/gtkheaderbar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 95c59bc2a2..1f3130ace5 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -352,6 +352,7 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) gtk_widget_set_valign (button, GTK_ALIGN_CENTER); priv->titlebar_icon = button; gtk_style_context_add_class (gtk_widget_get_style_context (button), "titlebutton"); + gtk_style_context_add_class (gtk_widget_get_style_context (button), "icon"); gtk_widget_set_size_request (button, 20, 20); if (!_gtk_header_bar_update_window_icon (bar, window)) { @@ -369,6 +370,7 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (button), menu); gtk_menu_button_set_use_popover (GTK_MENU_BUTTON (button), TRUE); gtk_style_context_add_class (gtk_widget_get_style_context (button), "titlebutton"); + gtk_style_context_add_class (gtk_widget_get_style_context (button), "appmenu"); image = gtk_image_new (); gtk_container_add (GTK_CONTAINER (button), image); gtk_widget_set_can_focus (button, FALSE); -- 2.30.2